package cn.itcast.day02.demo06;

public class Student implements Course{

    int ID;  // 学号
    String name;  // 姓名
    char sex;// 性别
    String birthdate;   // 出生日期 yyyy-MM-dd
    String specialty;   // 专业
    String course;  // 课程

    public Student(int ID, String name, char sex, String birthdate, String specialty, String course) {
        this.ID = ID;
        this.name = name;
        this.sex = sex;
        this.birthdate = birthdate;
        this.specialty = specialty;
        this.course = course;
    }
    @Override
    public String query_course_catalog(String speciality) {
        return "welcome to you ！";
    }
    public void showInfo(){
        System.out.println("学生: " + this.ID);
        System.out.println("姓名: " + this.name);
        System.out.println("性别: " + this.sex);
        System.out.println("生日: " + this.birthdate);
        System.out.println("专业: " + this.specialty);
        System.out.println("课程: " + this.course);

    }
}
